package com.example.ee_demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: ResponseController
 * @author: 芃
 * @description:
 * @date: 2024/12/20 17:26
 */
@RequestMapping("/response")
//@RestController  ==》复合注解
@Controller // ==》
public class ResponseController {

    //返回静态页面
    @RequestMapping("/getHtml")
    public String getHtml(){
        return "/html/index.html";// ‘/’ 不能省略
    }
}
